package pld.car.action;

import java.util.*;

import pld.car.bean.Settings;


public class SettingsAction extends BaseAction {

	private List<Object> settingsList;
	// 页面初始化参数
	private String item;
	private String setKey;
	private Settings settings;

	public SettingsAction() {
		System.out.println("SettingsAction init!");
	}

	// 获取所有settings的纪录
	public String queryHotlineNote() {
		this.setSettingsList(this.getSettingsService().queryHotlineNote(0, 500));
		return "success";
	}

	// 获取 根据传入的item和setKey查询对应的settings
	public String findSettings() {
		this.setSettings(this.getSettingsService().querySettings(item, setKey));
		return "success";
	}

	public List<Object> getSettingsList() {
		return settingsList;
	}

	public void setSettingsList(List<Object> settingsList) {
		this.settingsList = settingsList;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public String getSetKey() {
		return setKey;
	}

	public void setSetKey(String setKey) {
		this.setKey = setKey;
	}

	public Settings getSettings() {
		return settings;
	}

	public void setSettings(Settings settings) {
		this.settings = settings;
	}

}
